from celery.result import AsyncResult
from celery_tasks.celery import celery_app

async_result = AsyncResult(id='2676cc1e-3d75-45d2-9d87-6377f8239fad', app=celery_app)

if async_result.successful():
    result = async_result.get()
    print(result)
elif async_result.failed():
    print('任务执行失败')
elif async_result.status == 'STARTED':
    print('任务已经开始执行')